/**
 * 
 */
package com.rio.dandan.service;

import org.springframework.transaction.annotation.Transactional;

import com.rio.dandan.bean.PageBean;
import com.rio.dandan.pojo.UserAccount;
import com.rio.dandan.pojo.UserProfile;

/**
 * 
 * 业务接口
 * 
 * 用户帐号
 * 
 * UserAccountService.java
 * 
 * @author 宋陆
 * @version 1.0 2014-5-14
 */
public interface UserAccountService {
    
    PageBean<UserAccount> findUserAccount(PageBean<UserAccount> pageBean);

    UserAccount getUserAccount(String uid);

    UserAccount getUserAccountForUpdate(String account);

    @Transactional
    UserAccount addUserAccount(UserAccount userAccount, UserProfile userProfile);

    UserAccount login(String username, String password);
}
